package model.data
{
	import flash.filesystem.File;

	public class MatrixReactions extends BaseData
	{
		private var map:Object;
		
		override protected function process(data:String):void
		{
			map ={};
			
			var letter:String;
			var rows:Array = data.split("\r\n");
			
			for (var i:int=0;i<rows.length;i++)
			{
				var row:String = rows[i];
				if (row.length==1)
				{
					letter = row;
					map[letter] = [];
					continue;
				}
				
				map[letter].push(row);
			}
		}
		
		override protected function get store():File
		{
			return super.store.resolvePath("matrixReactions.txt");
		}
	}
}